<?php
    $content_xml .= '<office:body>
        <office:text>
            <text:sequence-decls>
                <text:sequence-decl text:display-outline-level="0"
                    text:name="Illustration" />
                <text:sequence-decl text:display-outline-level="0"
                    text:name="Table" />
                <text:sequence-decl text:display-outline-level="0"
                    text:name="Text" />
                <text:sequence-decl text:display-outline-level="0"
                    text:name="Drawing" />
            </text:sequence-decls>
            <text:p text:style-name="P3">Trica Soft SRL</text:p>
            <text:p text:style-name="P3" />
            <table:table table:name="Table1"
                table:style-name="Table1">
                <table:table-column table:style-name="Table1.A" />
                <table:table-column table:style-name="Table1.B" />
                <table:table-column table:style-name="Table1.C" />
                <table:table-column table:style-name="Table1.D" />
                <table:table-row>
                    <table:table-cell table:style-name="Table1.A1"
                        office:value-type="string">
                        <text:p text:style-name="P8">
                            <text:bookmark-start text:name="DDE_LINK" />
                            ' . LANG_Furnizor . '
                            <text:bookmark-end text:name="DDE_LINK" />
                        </text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A1"
                        office:value-type="string">
                        <text:p text:style-name="P8">Trica Soft SRL</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A1"
                        office:value-type="string">
                        <text:p text:style-name="P8">' . LANG_Cumparator . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.D1"
                        office:value-type="string">
                        <text:p text:style-name="P8">' . htmlspecialchars($client->nume) . '</text:p>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P8">
                            ' . LANG_CF . '
                        </text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P8">19040170</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P8">
                            ' . LANG_CF . '
                        </text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.D2"
                        office:value-type="string">
                        <text:p text:style-name="P8">' . htmlspecialchars($client->cf) . '</text:p>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P9">
                            ' . LANG_RC . '
                        </text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P8">J35/2946/2006</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P9">
                            ' . LANG_RC . '
                        </text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.D2"
                        office:value-type="string">
                        <text:p text:style-name="P8">' . htmlspecialchars($client->rc) . '</text:p>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P8">' . LANG_Sediu . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P8">' . htmlspecialchars("Str. Gh. Lazar, Nr. 7-9, Sannicolau Mare, Timis, 305600, Romania") . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P8">' . LANG_Sediu . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.D2"
                        office:value-type="string">
                        <text:p text:style-name="P8">' . getAdresaAsString($client->adresa) . '</text:p>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P9">
                            ' . LANG_CONT . '
                        </text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P8">CONT DE COMPLETAT</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P8">' . LANG_CONT . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.D2"
                        office:value-type="string">
                        <text:p text:style-name="P8">' . htmlspecialchars($contClient) . ' ' . $currencies[$monedaClient] . '</text:p>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P8">' . LANG_BANCA . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P8">BRD Timisoara</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P8">' . LANG_BANCA . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.D2"
                        office:value-type="string">
                        <text:p text:style-name="P8">' . htmlspecialchars($bancaClient) . '</text:p>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P8">' . LANG_TELEFON . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P8">0040770909446</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P8" />
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.D2"
                        office:value-type="string">
                        <text:p text:style-name="P8" />
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P8">' . LANG_Cota_TVA . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P8">0%</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2"
                        office:value-type="string">
                        <text:p text:style-name="P8" />
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.D2"
                        office:value-type="string">
                        <text:p text:style-name="P8" />
                    </table:table-cell>
                </table:table-row>
            </table:table>
            <text:p text:style-name="P4" />
            <text:p text:style-name="P3">' . LANG_Factura . '</text:p>
            <text:p text:style-name="P6">' . LANG_Seria . ' : ' . htmlspecialchars($factura->nr_factura) . '</text:p>
            <text:p text:style-name="P7">' . LANG_DATA . ' : ' . htmlspecialchars(getDateForUser($factura->data)) . '</text:p>
            <text:p text:style-name="P5" />
            <table:table table:name="Table2"
                table:style-name="Table2">
                <table:table-column table:style-name="Table2.A" />
                <table:table-column table:style-name="Table2.B" />
                <table:table-column table:style-name="Table2.C" />
                <table:table-column table:style-name="Table2.D" />
                <table:table-column table:style-name="Table2.E" />
                <table:table-column table:style-name="Table2.F" />
                <table:table-column table:style-name="Table2.G" />
                <table:table-column table:style-name="Table2.H" />
                <table:table-row>
                    <table:table-cell table:style-name="Table2.A1"
                        office:value-type="string">
                        <text:p text:style-name="P10">' . LANG_NR_CRT . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.A1"
                        table:number-columns-spanned="2" office:value-type="string">
                        <text:p text:style-name="P10">
                            ' . LANG_Denumirea_serviciilor . '
                        </text:p>
                    </table:table-cell>
                    <table:covered-table-cell />
                    <table:table-cell table:style-name="Table2.A1"
                        office:value-type="string">
                        <text:p text:style-name="P10">' . LANG_Unitatea_de_masura . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.A1"
                        office:value-type="string">
                        <text:p text:style-name="P10">' . LANG_Cantitatea . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.A1"
                        office:value-type="string">
                        <text:p text:style-name="P10">
                            ' . LANG_Pret_Unitar . '
                        </text:p>
                        <text:p text:style-name="P10">
                            ' . LANG_fara_TVA . '
                        </text:p>
                        <text:p text:style-name="P10">' . $currencies[$moneda] . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.A1"
                        office:value-type="string">
                        <text:p text:style-name="P10">' . LANG_Valoarea . ' </text:p>
                        <text:p text:style-name="P10">' . $currencies[$moneda] . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.H1"
                        office:value-type="string">
                        <text:p text:style-name="P10">
                            ' . LANG_Valoare_TVA . '
                        </text:p>
                        <text:p text:style-name="P10">' . $currencies[$moneda] . '</text:p>
                        <text:p text:style-name="P10" />
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table2.A2"
                        office:value-type="float" office:value="0">
                        <text:p text:style-name="P10">0</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.A2"
                        table:number-columns-spanned="2" office:value-type="float"
                        office:value="1">
                        <text:p text:style-name="P10">1</text:p>
                    </table:table-cell>
                    <table:covered-table-cell />
                    <table:table-cell table:style-name="Table2.A2"
                        office:value-type="float" office:value="2">
                        <text:p text:style-name="P10">2</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.A2"
                        office:value-type="float" office:value="3">
                        <text:p text:style-name="P10">3</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.A2"
                        office:value-type="float" office:value="4">
                        <text:p text:style-name="P10">4</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.G2"
                        office:value-type="string">
                        <text:p text:style-name="P10">5 (3 x 4)</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.H2"
                        office:value-type="float" office:value="6">
                        <text:p text:style-name="P10">6</text:p>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table2.A2"
                        office:value-type="float" office:value="1">
                        <text:p text:style-name="P10">1</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.G2"
                        table:number-columns-spanned="2" office:value-type="string">
                        <text:p text:style-name="P10">' . htmlspecialchars($text_factura) . '</text:p>
                    </table:table-cell>
                    <table:covered-table-cell />
                    <table:table-cell table:style-name="Table2.G2"
                        office:value-type="string">
                        <text:p text:style-name="P10">' . LANG_Bucata . ' </text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.G2"
                        office:value-type="string">
                        <text:p text:style-name="P12">1</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.G2"
                        office:value-type="string">
                        <text:p text:style-name="P12">' . prepareFloatForUser($suma_finala) . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.G2"
                        office:value-type="string">
                        <text:p text:style-name="P12">' . prepareFloatForUser($suma_finala) . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.H3"
                        office:value-type="string">
                        <text:p text:style-name="P12">' . prepareFloatForUser(0) . '</text:p>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table2.H3"
                        table:number-columns-spanned="8" office:value-type="string">
                        <text:p text:style-name="P11">
                            ' . LANG_Termenul_de_plata_este . ' 30 ' . LANG_zile . '
                        </text:p>
                    </table:table-cell>
                    <table:covered-table-cell />
                    <table:covered-table-cell />
                    <table:covered-table-cell />
                    <table:covered-table-cell />
                    <table:covered-table-cell />
                    <table:covered-table-cell />
                    <table:covered-table-cell />
                </table:table-row>
                <table:table-row table:style-name="Table2.5">
                    <table:table-cell table:style-name="Table2.G2"
                        table:number-rows-spanned="2" table:number-columns-spanned="2"
                        office:value-type="string">
                        <text:p text:style-name="P11">
                            ' . LANG_Semnatura_si_stampila_furnizorului . '
                        </text:p>
                        <text:p text:style-name="P19">
                            <draw:frame draw:style-name="fr1" draw:name="graphics1"
                                text:anchor-type="paragraph" svg:width="4.263cm"
                                svg:height="4.337cm" draw:z-index="0">
                                <draw:image
                                    xlink:href="Pictures/10000000000001B9000001B853EA7320.jpg"
                                    xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" />
                            </draw:frame>
                            <text:span text:style-name="T1" />
                        </text:p>
                        <text:p text:style-name="P11" />
                        <text:p text:style-name="P11" />
                        <text:p text:style-name="P11" />
                        <text:p text:style-name="P11" />
                        <text:p text:style-name="P11" />
                        <text:p text:style-name="P11" />
                        <text:p text:style-name="P11" />
                        <text:p text:style-name="P11">
                            ' . LANG_NUME . ': Trica Laurentiu
                        </text:p>
                        <text:p text:style-name="P11">' . LANG_Serie_CI . ': TM 217572</text:p>
                        <text:p text:style-name="P11">
                            ' . LANG_CNP . ': 1830902352296
                        </text:p>
                    </table:table-cell>
                    <table:covered-table-cell />
                    <table:table-cell table:style-name="Table2.G2"
                        table:number-rows-spanned="2" table:number-columns-spanned="3"
                        office:value-type="string">
                        <text:p text:style-name="P11">
                            ' . LANG_Date_privind_expeditia . '
                        </text:p>
                        <text:p text:style-name="P11" />
                        <text:p text:style-name="P11">
                            ' . LANG_Nume_delegat . '
                        </text:p>
                        <text:p text:style-name="P11">
                            ' . htmlspecialchars($nume_user) . '
                        </text:p>
                        <text:p text:style-name="P11">' . LANG_Serie_CI . '</text:p>
                        <text:p text:style-name="P11">' . htmlspecialchars($client->client_serie_ci) . '</text:p>
                        <text:p text:style-name="P11">' . LANG_CNP . '</text:p>
                        <text:p text:style-name="P11">
                            ' . htmlspecialchars($client->client_cnp) . '
                        </text:p>
                        <text:p text:style-name="P11" />
                        <text:p text:style-name="P11">
                            ' . LANG_Mijloc_transport . '
                        </text:p>
                        <text:p text:style-name="P11">' . LANG_EMAIL . '</text:p>
                    </table:table-cell>
                    <table:covered-table-cell />
                    <table:covered-table-cell />
                    <table:table-cell table:style-name="Table2.G2"
                        office:value-type="string">
                        <text:p text:style-name="P11" />
                        <text:p text:style-name="P11" />
                        <text:p text:style-name="P14">' . LANG_TOTAL . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.G2"
                        office:value-type="string">
                        <text:p text:style-name="P11" />
                        <text:p text:style-name="P11" />
                        <text:p text:style-name="P12">' . prepareFloatForUser($suma_finala) . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.H3"
                        office:value-type="string">
                        <text:p text:style-name="P11" />
                        <text:p text:style-name="P11" />
                        <text:p text:style-name="P12">' . prepareFloatForUser(0) . '</text:p>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:covered-table-cell />
                    <table:covered-table-cell />
                    <table:covered-table-cell />
                    <table:covered-table-cell />
                    <table:covered-table-cell />
                    <table:table-cell table:style-name="Table2.G2"
                        office:value-type="string">
                        <text:p text:style-name="P11">
                            ' . LANG_Semnatura_primire . '
                        </text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.H3"
                        table:number-columns-spanned="2" office:value-type="string">
                        <text:p text:style-name="P13">
                            ' . LANG_Total_de_plata . '
                        </text:p>
                        <text:p text:style-name="P10">
                            (col. 5 + col. 6)
                        </text:p>
                        <text:p text:style-name="P11" />
                        <text:p text:style-name="P12">' . prepareFloatForUser($suma_finala) . '</text:p>
                    </table:table-cell>
                    <table:covered-table-cell />
                </table:table-row>
            </table:table>
            <text:p text:style-name="P5" />
        </office:text>
    </office:body>
</office:document-content>';
?>            